﻿#pragma once
#include "afxdialogex.h"
#include "CItemResize.h"
#include "dlg_net_ctrl.h"
#include "dlg_sip_ctrl.h"
#include "dlg_img_ctrl.h"
#include "dlg_capture_ctrl.h"
#include "dlg_record_ctrl.h"

// dlg_main 对话框

class dlg_main : public CDialogEx
{
	DECLARE_DYNAMIC(dlg_main)

public:
	CTabCtrl      m_tab_ctrl;
	dlg_main(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~dlg_main();

	dlg_net_ctrl net_ctrl;
	dlg_sip_ctrl sip_ctrl;
	dlg_img_ctrl img_ctrl;
	dlg_capture_ctrl capture_ctrl;
	dlg_record_ctrl record_ctrl;
	CItemResize   resize;

	HWND notify_wnd;

	void MoveToCenter(void);

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_MAIN_DLG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
	
	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	int set(struct device_info* info);
	int get(struct device_info* info);
	BOOL valid(void);
	afx_msg void OnTcnSelchangeTab1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg LRESULT OnDeviceCtrlAck(WPARAM wParam, LPARAM lParam);
	afx_msg void OnBnClickedBtnConfirm();
	afx_msg void OnBnClickedBtnCancel();
	afx_msg void OnBnClickedBtnAppliy();
	afx_msg void OnClose();
	afx_msg void OnBnClickedBtnRefresh();
	afx_msg void OnBnClickedBtnReboot();
};
